package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 系统-学生段位历史（system模块扩展）对象 sys_student_rank_history
 *
 * @author 杨佳霖
 * @date 2025-08-29
 */
@Data
public class AsysStudentRankHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private Long userId;

    /** 变化前段位 */
    @Excel(name = "变化前段位")
    private String beforeRank;

    /** 变化后段位 */
    @Excel(name = "变化后段位")
    private String afterRank;

    /** 变化类型 */
    @Excel(name = "变化类型")
    private String changeType;

    /** 变化原因 */
    @Excel(name = "变化原因")
    private String reason;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setBeforeRank(String beforeRank)
    {
        this.beforeRank = beforeRank;
    }

    public String getBeforeRank()
    {
        return beforeRank;
    }

    public void setAfterRank(String afterRank)
    {
        this.afterRank = afterRank;
    }

    public String getAfterRank()
    {
        return afterRank;
    }

    public void setChangeType(String changeType)
    {
        this.changeType = changeType;
    }

    public String getChangeType()
    {
        return changeType;
    }

    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("beforeRank", getBeforeRank())
                .append("afterRank", getAfterRank())
                .append("changeType", getChangeType())
                .append("reason", getReason())
                .append("createTime", getCreateTime())
                .toString();
    }
}
